using System;
using System.Collections;
using System.ComponentModel;

namespace PickGold.Charting.Design
{
	internal class SeriesDataFieldYCheckedListBox : SeriesDataSourceMemberYCheckedListBox
	{
		private ITypeDescriptorContext _context;

		public SeriesDataFieldYCheckedListBox(Chart chart, ITypeDescriptorContext context, object editValue, bool usedForYValue)
			: base(chart, editValue, usedForYValue)
		{
			this._context = context;
			this.AutoSize = false;
		}

		internal override ArrayList GetMemberNames()
		{
			var convertor = new SeriesDataFieldYConvertor();
			return new ArrayList(convertor.GetStandardValues(this._context));
		}
	}
}

